home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / oostrng.exe / OOSTRING.TXT < prev   
Text File  |  1992-03-29  |  1KB  |  33 lines

  1. OOSTRING Class release 1.1  March 29, 1992
  2.  
  3. Here is a class to handle strings.  Most of the operators have
  4. been overloaded.  This version includes operator[], operator<<,
  5. and operator>>.
  6.  
  7. Operator + can be used to concatenate strings.  Unary operators +
  8. and - will convert the string to upper case or lower case and return
  9. a temporary variable; the original string is NOT converted.  This is
  10. different than what release 1.0 of this code did.  Operators ++ and --
  11. do change the case of the string, no temporaries are made.  I haven't
  12. yet included code for BC3's support of pre/post ++,-- operators but I
  13. will soon.
  14.  
  15. All of the logical comparisons have been overloaded.  Because I didn't
  16. overload all of the comparison operators there is the chance that a lot
  17. of constructor calls will be made, along with a lot of temporaries.
  18. This overhead can be avoided by overloading the logical operators with
  19. all of the possible combinations.  I'll be doing this as soon as I get
  20. a chance!
  21.  
  22. I'm sure I'll be updating this class in the future as I need more
  23. functionality from it.
  24.  
  25. Go ahead and freely use this class.  All I ask is that you send
  26. me a letter saying that you are using it, or just say "Hi."
  27. Also, please send me any comments or suggestions that you may
  28. have.
  29.  
  30. Happy programming!
  31.  
  32. John Bernstein
  33. 70244,1237